package com.nfIt;

import javax.swing.text.StyledEditorKit;

/**
 * ClossName:a
 * Pakage:com.nfIt
 * Description
 *
 * @Author L
 * @Create 2024/3/20 9:52
 * @Version 2023.1.3
 */
public class a implements Runnable{
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            boolean status = Thread.currentThread().isInterrupted();

            if (status){
                System.out.println("做一些收尾工作");
                break;
            }
            System.out.println("执行相关业务"+Thread.currentThread().isInterrupted());
        }
    }
}
